package com.wzy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wzy
 * @since 2021-02-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Hero对象", description = "")
public class Hero implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "hero_id", type = IdType.AUTO)
    private Long heroId;

    private Long userId;

    private Long provinceId;

    private String provinceName;

    private Long battleId;

    private String title;

    private String content;

    private String description;

    private String img;

    private String flag;

    private Integer views;

    private Long commentCount;

    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private boolean moneyOpen;

    private boolean commentOpen;

    private boolean shareOpen;

    private boolean publish;


}
